<!--<include file="public+header" />-->

<script src="<!--{:__PUBLIC__}-->/js/jquery/nakedpassword/naked_password.js" type="text/javascript"></script>
<!--{script}-->
$(document).ready(function(){
	$("#old_password,#user_password,#new_password").nakedPassword({path: "<!--{:__PUBLIC__}-->/js/jquery/nakedpassword/images/"});
});

function update(){
	$("#submit_button").attr("disabled","disabled");
	$("#submit_button").val('update...');
	Q.AjaxSubmit('passwordUpd','<!--{:Q::U('public/change_pass')}-->',null,complete);
}

function complete(data,status){
	$("#submit_button").attr("disabled", false);
	$("#submit_button").val("<!--<lang package='Template'>-->更新<!--</lang>-->");
}

checkForm(update);
<!--{/script}-->

	<section class="secondary_bar">
		<div class="breadcrumbs_container">
			<article class="breadcrumbs"><a href="<!--{:Q::U('public/fmain')}-->"><!--<lang package='Template'>-->主页<!--</lang>--></a> <div class="breadcrumb_divider"></div> <a class="current"><!--<lang package='Template'>-->修改密码<!--</lang>--></a><!--{if APP_NAME==='admin'}--> <div class="breadcrumb_divider"></div> <a href="javascript:void(0);" onclick="adminctrlmenuAdd('<!--{:__SELF__}-->','<!--<lang package='Template'>-->修改密码<!--</lang>-->')" title="<!--<lang package='Template'>-->添加到快捷导航<!--</lang>-->">[+]</a><!--{/if}--></article>
		</div>
	</section>

	<section id="main" class="column">
		<article class="module width_full">
			<header><h3 class="tabs_involved"><!--<lang package='Template'>-->修改密码<!--</lang>--></h3>
				<ul class="tabs">
					<li class="active"><a href="<!--{:Q::U('public/password')}-->"><!--<lang package='Template'>-->修改密码<!--</lang>--></a></li>
					<li><a href="<!--{:Q::U('avatar/index')}-->"><!--<lang package='Template'>-->修改头像<!--</lang>--></a></li>
					<li><a href="<!--{:Q::U('public/information')}-->"><!--<lang package='Template'>-->修改资料<!--</lang>--></a></li>
				</ul>
			</header>
			<form action="<!--{:Q::U('public/change_pass')}-->" method="post" id="passwordUpd" class="validate">
				<div class="module_content">
					<fieldset><label for="old_password"><!--<lang package='Template'>-->旧密码<!--</lang>--></label>
						<input type="password" name="old_password" id="old_password" size="40" value="" class="{required:true}"/>
						<div class="description input_tips"><!--<lang package='Template'>-->用户以前使用的密码<!--</lang>--></div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset><label for="user_password"><!--<lang package='Template'>-->新密码<!--</lang>--></label>
						<input type="password" name="user_password" id="user_password" size="40" value="" class="{required:true}"/>
						<div class="description input_tips"><!--<lang package='Template'>-->当前需要修改的新密码<!--</lang>--></div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="new_password"><!--<lang package='Template'>-->确认新密码<!--</lang>--></label>
						<input type="password" name="new_password" id="new_password" size="40" value="" class="{required:true,equalTo:'#user_password'}"/>
						<div class="description input_tips"><!--<lang package='Template'>-->新密码确认，保证密码正确输入<!--</lang>--></div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset><label for="seccode"><!--<lang package='Template'>-->验证码<!--</lang>--></label>
						<input type="text" name="seccode" size="10" id="seccode" class="{required:true,remote:Q.U('public/validate_seccode'),messages:{remote:'<!--<lang package='Template'>-->验证码错误<!--</lang>-->'}} left"/>&nbsp;
						<span class="validate_seccode"><span class="input_errortips"></span></span>
						<div class="description clear" style="padding-top:8px;">
							<span id="seccodeImage"><img style="cursor:pointer" onclick="updateSeccode()" src="<!--{:Q::U('public/seccode')}-->" /></span>
						</div>
					</fieldset>
				</div>
				<footer>
					<div class="submit_link">
						<input type="hidden" name="ajax" value="1">
						<input type="hidden" name="user_id" value="<!--{$nUserId}-->">
						<input id="submit_button" type="submit" class="alt_btn" value="<!--<lang package='Template'>-->更新<!--</lang>-->" />
					</div>
				</footer>
			</form>
		</article>

<!--<include file="public+footer">-->